
function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
var openTip = oOpenTip || "";
var shutTip = oShutTip || "";
if(targetObj.style.display!="none"){
   if(shutAble) return;
   targetObj.style.display="none";
   if(openTip  &&  shutTip){
    sourceObj.src = shutTip; 
   }
} else {
   targetObj.style.display="block";
   if(openTip  &&  shutTip){
    sourceObj.src = openTip; 
   }
}
} 



function openNewWindow(url,width,height){
	var sWidth = width;
	var sHeight = height;
	var left = ( screen.availWidth - sWidth ) / 2;
    var  top = ( screen.availHeight - sHeight ) / 2;      
	var pop = window.open (url, 'newwindow', 'height='+sHeight+', width='+sWidth+', top='+top+', left='+left+', toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no') //���Ҫд��һ�� 
	pop.moveTo((screen.width-width)/2,(screen.height-height)/2);
} 

function openModalDialog(url,width,height){
	var options="dialogWidth:"+width+";dialogHeight:"+height+";center:yes;resizable:yes;scroll:yes;status:no";
	var collection=window.showModalDialog (url,null,options);
	return collection;
}